package com.kdtech.entity.data;

import com.kdtech.utils.StringUtils;

public abstract  class AbstractMeta   {
	
	private byte[] _id;
	private String url="";
	
	/**
	 * 类型 1: 新闻 2：视频 3:论坛 4：问答/知道 5：平媒 6：博客
	 */
	protected Integer type;

	/**
	 * 标题  (Length<=100)
	 */
	private String title;

	/**
	 * 正文  (Length<=1000)
	 */
	private String content;

	/**
	 * 发布日期
	 */
	private Long date;

	/**
	 * 来源（出处) 对应JOB表 jobId
	 */
	private Integer source;

	/**
	 * 地区ID
	 */
	private Integer addressValue;
	/**
	 * 作者
	 */
	private String author;

	/**
	 * 更新信息属性地址
	 */
	private String updateUrl = null;

	/**
	 * 点击数
	 */
	private Integer clickNum;
	/**
	 * 评论数/跟帖数
	 */
	private Integer commentNum;

	/**
	 * 网站等级
	 */
	private Integer level;

	private boolean fixTitle = true;

	public byte[] get_id() {
		return _id;
	}
	public void set_id(byte[] _id) {
		this._id = _id;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public boolean isFixTitle() {
		return fixTitle;
	}
	public void setFixTitle(boolean fixTitle) {
		this.fixTitle = fixTitle;
	}
	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = StringUtils.trimSpace(content);
	}
	public String getUpdateUrl() {
		return updateUrl;
	}
	public void setUpdateUrl(String updateUrl) {
		this.updateUrl = updateUrl;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author =StringUtils.delAllSpace(author);
	}
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title =StringUtils.trimSpace(title);
	}

	public Long getDate() {
		return date;
	}

	public void setDate(Long date) {
		this.date = date;
	}

	public Integer getSource() {
		return source;
	}
	public Integer getAddressValue() {
		return addressValue;
	}
	public void setAddressValue(Integer addressValue) {
		this.addressValue = addressValue;
	}
	public void setSource(Integer source) {
		this.source = source;
	}
	public Integer getClickNum() {
		return clickNum;
	}
	public void setClickNum(Integer clickNum) {
		this.clickNum = clickNum;
	}
	public Integer getCommentNum() {
		return commentNum;
	}
	public void setCommentNum(Integer commentNum) {
		this.commentNum = commentNum;
	}

}
